package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TckTicketComment generated by hbm2java
 */
@Entity
@Table(name="tck_ticket_comment"
    ,catalog="rms"
)
public class TckTicketComment  implements java.io.Serializable {


     private Integer ticketCommentId;
     private TckTicket tckTicket;
     private int ticketCommentCreateBy;
     private String ticketCommentDesc;
     private Date ticketCommentCreateDate;
     private Date ticketCommentUpdateDate;
     private boolean ticketCommentIsdeleted;

    public TckTicketComment() {
    }

	
    public TckTicketComment(TckTicket tckTicket, int ticketCommentCreateBy, String ticketCommentDesc, Date ticketCommentCreateDate, boolean ticketCommentIsdeleted) {
        this.tckTicket = tckTicket;
        this.ticketCommentCreateBy = ticketCommentCreateBy;
        this.ticketCommentDesc = ticketCommentDesc;
        this.ticketCommentCreateDate = ticketCommentCreateDate;
        this.ticketCommentIsdeleted = ticketCommentIsdeleted;
    }
    public TckTicketComment(TckTicket tckTicket, int ticketCommentCreateBy, String ticketCommentDesc, Date ticketCommentCreateDate, Date ticketCommentUpdateDate, boolean ticketCommentIsdeleted) {
       this.tckTicket = tckTicket;
       this.ticketCommentCreateBy = ticketCommentCreateBy;
       this.ticketCommentDesc = ticketCommentDesc;
       this.ticketCommentCreateDate = ticketCommentCreateDate;
       this.ticketCommentUpdateDate = ticketCommentUpdateDate;
       this.ticketCommentIsdeleted = ticketCommentIsdeleted;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="TICKET_COMMENT_ID", unique=true, nullable=false)
    public Integer getTicketCommentId() {
        return this.ticketCommentId;
    }
    
    public void setTicketCommentId(Integer ticketCommentId) {
        this.ticketCommentId = ticketCommentId;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="TICKET_ID", nullable=false)
    public TckTicket getTckTicket() {
        return this.tckTicket;
    }
    
    public void setTckTicket(TckTicket tckTicket) {
        this.tckTicket = tckTicket;
    }
    
    @Column(name="TICKET_COMMENT_CREATE_BY", nullable=false)
    public int getTicketCommentCreateBy() {
        return this.ticketCommentCreateBy;
    }
    
    public void setTicketCommentCreateBy(int ticketCommentCreateBy) {
        this.ticketCommentCreateBy = ticketCommentCreateBy;
    }
    
    @Column(name="TICKET_COMMENT_DESC", nullable=false, length=65535)
    public String getTicketCommentDesc() {
        return this.ticketCommentDesc;
    }
    
    public void setTicketCommentDesc(String ticketCommentDesc) {
        this.ticketCommentDesc = ticketCommentDesc;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="TICKET_COMMENT_CREATE_DATE", nullable=false, length=19)
    public Date getTicketCommentCreateDate() {
        return this.ticketCommentCreateDate;
    }
    
    public void setTicketCommentCreateDate(Date ticketCommentCreateDate) {
        this.ticketCommentCreateDate = ticketCommentCreateDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="TICKET_COMMENT_UPDATE_DATE", length=19)
    public Date getTicketCommentUpdateDate() {
        return this.ticketCommentUpdateDate;
    }
    
    public void setTicketCommentUpdateDate(Date ticketCommentUpdateDate) {
        this.ticketCommentUpdateDate = ticketCommentUpdateDate;
    }
    
    @Column(name="TICKET_COMMENT_ISDELETED", nullable=false)
    public boolean isTicketCommentIsdeleted() {
        return this.ticketCommentIsdeleted;
    }
    
    public void setTicketCommentIsdeleted(boolean ticketCommentIsdeleted) {
        this.ticketCommentIsdeleted = ticketCommentIsdeleted;
    }




}


